package com.whfc.emp.dao;

import com.whfc.emp.dto.AppExamPaperDTO;
import com.whfc.emp.entity.AppExamPaper;
import com.whfc.emp.param.AppExamPaperListParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: realm
 * @date: 2025-10-22 15:24
 * @description: //todo
 */
public interface AppExamPaperMapper {
    int deleteByPrimaryKey(@Param("id") Integer id);

    int insert(@Param("record") AppExamPaper record);

    int insertSelective(@Param("record") AppExamPaper record);

    AppExamPaper selectByPrimaryKey(@Param("id")Integer id);

    int updateByPrimaryKeySelective(@Param("record") AppExamPaper record);

    int updateByPrimaryKey(@Param("record") AppExamPaper record);

    /**
     * 获取培训列表
     *
     * @param request
     * @return
     */
    List<AppExamPaperDTO> selectByParam(@Param("request") AppExamPaperListParam request);

    /**
     * 删除培训记录
     *
     * @param id
     */
    void deleteLogicById(@Param("id") Integer id);


    /**
     * 根据ID查询
     *
     * @return
     */
    List<AppExamPaperDTO> selectByIds(@Param("list") List<Long> collects);
}